if (this.getItem('cmbGroupCode').getValue()==="") {
    return;
}

var st = this.getItem('grdBoundEquipment').getStore();
var detail=[];
st.each(function(rcd){
    detail.push({
        resId:rcd.get('resId')
    });
});

var parm = {
    groupCode:this.getItem('cmbGroupCode').getValue(),
    groupDesc:this.getItem('txtGroupDesc').getValue(),
    status:"N",
    resList:detail
};

Ext.Msg.show({
    title: button.getText(),
    msg: T.msg.are_you_sure_to_save_data,
    icon: Ext.Msg.QUESTION,
    buttons: Ext.Msg.YESNO,
    fn: function(btnId) {
        if ('yes' == btnId) {
            button.setDisabled(true);

            YX.ZbusRpc.request({
                module: 'SresSaveGroupInfoAndDetailService',
                params: parm,
                showSuccess: true,
                callback: function() {
                    button.setDisabled(false);
                }
            })
        }
    }
});